home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Messaging / OSL / OSLToken.h < prev   
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.9 KB  |  72 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        OSLToken.h
  3.  
  4.     Contains:    Routines to abstract the manipulation of tokens in the OSL
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <7>     5/25/95    jpa        Use #pragma import [1241078]
  13.          <6>      5/3/95    NP        1211084: Remove 5$
  14.          <5>      2/8/95    NP        1218550: Don't allocate OSLContexts
  15.                                     dynamically.
  16.          <4>    11/15/94    NP        1196322-made functions non-pascal, added a
  17.                                     function.
  18.          <3>     9/29/94    RA        1189812: Mods for 68K build.
  19.          <2>     8/19/94    NP        1181622: Ownership fix.
  20.          <6>      5/2/94    eeh        bug #1160654: wrap 'extern "C" {' around
  21.                                     prototypes
  22.          <5>      2/9/94    NP        Tiger Team cleanup.
  23.          <4>     9/24/93    JA        Minor syntactic tweaks for THINK C++.
  24.          <3>     8/19/93    NP        Changed const error code to a #define.
  25.          <2>     8/16/93    NP        Adjusted for latest OSL proposal.
  26.          <1>     8/11/93    NP        first checked in
  27.  
  28.     To Do:
  29. */
  30.  
  31. #ifndef _OSLTOKEN_
  32. #define _OSLTOKEN_
  33.  
  34. #ifndef _CNTXTOSL_
  35. #include "CntxtOSL.h"
  36. #endif
  37.  
  38. #define errNotAValidToken -1730;
  39.  
  40. #ifdef _PLATFORM_MACINTOSH_
  41. #pragma import on
  42. #endif
  43.  
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47.  
  48. DescType OSLGetTokenDescType(const OSLToken* token);
  49. void OSLSetTokenDescType(OSLToken* token, DescType appDescType);
  50. Handle OSLGetTokenDataHandle(const OSLToken* token);
  51. void OSLSetTokenDataHandle(OSLToken* token, Handle appHandle);
  52. OSErr OSLGetTokenContext(const OSLToken* token, OSLContext* context);
  53. OSErr OSLSetTokenContext(OSLToken* token, OSLContext* context);
  54. //void StuffContextIntoToken(OSLToken* token, OSLContext context);
  55. //OSLContext GetContextFromToken(OSLToken* token);
  56.  
  57. GetCallbackCallerProc OSLGetContextProc(const OSLContext* context);
  58. long OSLGetContextRefCon(const OSLContext* context);
  59. void OSLSetContextProc(OSLContext* context,
  60.                                 GetCallbackCallerProc proc);
  61. void OSLSetContextRefCon(OSLContext* context, long refCon);
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67. #ifdef _PLATFORM_MACINTOSH_
  68. #pragma import off
  69. #endif
  70.  
  71. #endif /* _OSLTOKEN_ */
  72.